/**
 * 引入vant组件
 */
import { createApp } from 'vue'
import App from '../App.vue'
const app = createApp(App)

import { Button, List, Cell, Tabbar, TabbarItem, Icon, NoticeBar } from 'vant'

const plugins = [Button, List, Cell, Tabbar, TabbarItem, Icon, NoticeBar]

export const vantPlugins = {
  install: () => {
    plugins.forEach(item => {
      // console.log(item.name, item)
      app.component(item.name, item)
    })
  }
}
